home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / gem / l_0399 / 331 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.7 KB

  1. Date: Mon, 6 Jun 1994 12:48:35 -0400 (EDT)
  2. From: Timothy Miller <millert@undergrad.csee.usf.edu>
  3. Subject: Re: DEFAULT.SYS: Draft proposal, 4
  4. To: gem-list@world.std.com
  5. In-Reply-To: <199406052117.AA0358016641@relay2.geis.com>
  6. Message-Id: <Pine.3.87.9406061234.C19709-0100000@undergrad>
  7. Mime-Version: 1.0
  8. Precedence: bulk
  9.  
  10.  
  11.  
  12. On Sun, 5 Jun 1994 s.sanders2@genie.geis.com wrote:
  13.  
  14. > Reply:  Item #7176694 from GEM-LIST-APPROVAL@WORLD.STD.COM@INET00#
  15. >  
  16. > I've got a few ideas I'd like to share...
  17. >  
  18. > IMHO it's probably a bad idea to require each application to parse a
  19. > KEYBIND.SYS (or whatever) file individually. This leads to extra work
  20. > (which means fewer people use it) and undoubtedly some programs will
  21. > have bugs in _their_ parse code making them less portable between
  22. > machines.
  23.  
  24. Agreed.
  25.  
  26. >  
  27. > The solution (and forgive me if this was meant to be 'doubly'
  28. > implemented) is a global key definition array in memory. Let a
  29. > Resident CPX or TSR define a cookie whose pointer points to an array
  30. > like this:
  31. >  
  32. > typedef struct _keydef_cookie
  33. > {
  34. >      short func_code;           /* As suggested 0-999 general, etc */
  35. >      short key_code;            /* Key equivalent */
  36. >      short key_kbstate;         /* Mask of required state */
  37. > } KEYDEF_COOKIE;
  38. >  
  39. > KEYDEF_COOKIE keysdefs[...];
  40. >  
  41. > The array would be terminated by 0xFFFF func_code entry.
  42. >  
  43. > -Scott @ SDS
  44.  
  45. What should key_code be?  A hardware scan-code?  That will be different 
  46. on different keyboards.  Certainly not an ascii code either since that 
  47. wouldn't distinguish between Return/^M, Backspace/^H, etc.  Must we now 
  48. come up with ANOTHER standard for what values correspond 
  49. (internationally) to what keys?
  50.  
  51.  
  52.